import { post, get } from "@/utils/http";
import type { IUsersType,selectData } from "@/typings/customerType";


// 用户登录
export const doUserLogin = (userData: any) => post<any>(`/api/login`, userData);

// 客户列表
export const getUsersApi = (page = 1, size = 5) =>
  get<IUsersType>(`/api/customers?page=${page}&size=${size}`);


  
export const selectCustomerApi = (selectData: selectData) => post<any>(`/api/selectUsers`, selectData);
